package com.tanhan.mindapp.dao;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

@Data
@Schema(description = "分页控制类")
public class PageEntity {
    // ==================== 分页控制属性 ====================
    /** 当前页码 */
    @TableField(exist = false)
    @Schema(description = "当前页码", example = "1")
    private Integer pageNum = 1;

    /** 每页大小 */
    @TableField(exist = false)
    @Schema(description = "每页大小", example = "10")
    private Integer pageSize = 10;

    /** 排序字段 */
    @TableField(exist = false)
    @Schema(description = "排序字段", example = "create_time")
    private String orderByColumn;

    /** 排序方式 */
    @TableField(exist = false)
    @Schema(description = "排序方式", example = "desc")
    private String isAsc = "desc";
}
